.class public Lcom/xingbook/group/activity/GroupMinePostActivity;
.super Lcom/xingbook/park/activity/BaseActivity;

# interfaces
.implements Landroid/view/View$OnClickListener;
.implements Landroid/widget/AdapterView$OnItemClickListener;
.implements Lcom/xingbook/group/adapter/v;


# instance fields
.field private a:Lcom/handmark/pulltorefresh/library/PullToRefreshListView;

.field private b:Lcom/xingbook/group/adapter/t;

.field private c:Lcom/xingbook/ui/ae;

.field private d:Landroid/view/View;

.field private e:Landroid/widget/TextView;

.field private f:Ljava/util/ArrayList;

.field private g:I

.field private h:J

.field private i:Z

.field private l:Landroid/widget/RelativeLayout;

.field private m:Lcom/xingbook/group/activity/ae;


# direct methods
.method public constructor <init>()V
    .locals 1

    const/4 v0, 0x0

    invoke-direct {p0}, Lcom/xingbook/park/activity/BaseActivity;-><init>()V

    iput v0, p0, Lcom/xingbook/group/activity/GroupMinePostActivity;->g:I

    iput-boolean v0, p0, Lcom/xingbook/group/activity/GroupMinePostActivity;->i:Z

    new-instance v0, Lcom/xingbook/group/activity/ae;

    invoke-direct {v0, p0}, Lcom/xingbook/group/activity/ae;-><init>(Lcom/xingbook/group/activity/GroupMinePostActivity;)V

    iput-object v0, p0, Lcom/xingbook/group/activity/GroupMinePostActivity;->m:Lcom/xingbook/group/activity/ae;

    return-void
.end method

.method private declared-synchronized a(I)V
    .locals 2

    monitor-enter p0

    :try_start_0
    iget-boolean v0, p0, Lcom/xingbook/group/activity/GroupMinePostActivity;->i:Z
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    if-eqz v0, :cond_0

    :goto_0
    monitor-exit p0

    return-void

    :cond_0
    const/4 v0, 0x1

    :try_start_1
    iput-boolean v0, p0, Lcom/xingbook/group/activity/GroupMinePostActivity;->i:Z

    iget-object v0, p0, Lcom/xingbook/group/activity/GroupMinePostActivity;->m:Lcom/xingbook/group/activity/ae;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Lcom/xingbook/group/activity/ae;->sendEmptyMessage(I)Z

    sget-object v0, Lcom/xingbook/c/o;->h:Ljava/util/concurrent/ExecutorService;

    new-instance v1, Lcom/xingbook/group/activity/ab;

    invoke-direct {v1, p0, p1}, Lcom/xingbook/group/activity/ab;-><init>(Lcom/xingbook/group/activity/GroupMinePostActivity;I)V

    invoke-interface {v0, v1}, Ljava/util/concurrent/ExecutorService;->execute(Ljava/lang/Runnable;)V
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    goto :goto_0

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method static synthetic a(Lcom/xingbook/group/activity/GroupMinePostActivity;J)V
    .locals 0

    iput-wide p1, p0, Lcom/xingbook/group/activity/GroupMinePostActivity;->h:J

    return-void
.end method

.method static synthetic a(Lcom/xingbook/group/activity/GroupMinePostActivity;Ljava/lang/String;)V
    .locals 0

    invoke-direct {p0, p1}, Lcom/xingbook/group/activity/GroupMinePostActivity;->a(Ljava/lang/String;)V

    return-void
.end method

.method static synthetic a(Lcom/xingbook/group/activity/GroupMinePostActivity;Z)V
    .locals 0

    iput-boolean p1, p0, Lcom/xingbook/group/activity/GroupMinePostActivity;->i:Z

    return-void
.end method

.method private a(Ljava/lang/String;)V
    .locals 2

    iget-object v0, p0, Lcom/xingbook/group/activity/GroupMinePostActivity;->e:Landroid/widget/TextView;

    invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/xingbook/group/activity/GroupMinePostActivity;->d:Landroid/view/View;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    return-void
.end method

.method static synthetic a(Lcom/xingbook/group/activity/GroupMinePostActivity;)Z
    .locals 1

    iget-boolean v0, p0, Lcom/xingbook/group/activity/GroupMinePostActivity;->i:Z

    return v0
.end method

.method static synthetic b(Lcom/xingbook/group/activity/GroupMinePostActivity;)Lcom/xingbook/group/activity/ae;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/group/activity/GroupMinePostActivity;->m:Lcom/xingbook/group/activity/ae;

    return-object v0
.end method

.method static synthetic c(Lcom/xingbook/group/activity/GroupMinePostActivity;)I
    .locals 1

    iget v0, p0, Lcom/xingbook/group/activity/GroupMinePostActivity;->g:I

    return v0
.end method

.method static synthetic d(Lcom/xingbook/group/activity/GroupMinePostActivity;)Ljava/util/ArrayList;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/group/activity/GroupMinePostActivity;->f:Ljava/util/ArrayList;

    return-object v0
.end method

.method static synthetic e(Lcom/xingbook/group/activity/GroupMinePostActivity;)Lcom/handmark/pulltorefresh/library/PullToRefreshListView;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/group/activity/GroupMinePostActivity;->a:Lcom/handmark/pulltorefresh/library/PullToRefreshListView;

    return-object v0
.end method

.method static synthetic f(Lcom/xingbook/group/activity/GroupMinePostActivity;)Lcom/xingbook/group/adapter/t;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/group/activity/GroupMinePostActivity;->b:Lcom/xingbook/group/adapter/t;

    return-object v0
.end method

.method static synthetic g(Lcom/xingbook/group/activity/GroupMinePostActivity;)Landroid/view/View;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/group/activity/GroupMinePostActivity;->d:Landroid/view/View;

    return-object v0
.end method

.method static synthetic h(Lcom/xingbook/group/activity/GroupMinePostActivity;)Lcom/xingbook/ui/ae;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/group/activity/GroupMinePostActivity;->c:Lcom/xingbook/ui/ae;

    return-object v0
.end method

.method static synthetic i(Lcom/xingbook/group/activity/GroupMinePostActivity;)J
    .locals 2

    iget-wide v0, p0, Lcom/xingbook/group/activity/GroupMinePostActivity;->h:J

    return-wide v0
.end method


# virtual methods
.method public a()V
    .locals 1

    const/4 v0, 0x0

    invoke-direct {p0, v0}, Lcom/xingbook/group/activity/GroupMinePostActivity;->a(I)V

    return-void
.end method

.method public e()Ljava/lang/String;
    .locals 2

    iget v0, p0, Lcom/xingbook/group/activity/GroupMinePostActivity;->g:I

    const/4 v1, 0x1

    if-ne v0, v1, :cond_0

    new-instance v0, Ljava/lang/StringBuilder;

    const-string v1, "\u5708\u5b50-\u56de\u590d\u6211\u7684"

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    :goto_0
    return-object v0

    :cond_0
    new-instance v0, Ljava/lang/StringBuilder;

    const-string v1, "\u5708\u5b50-\u6211\u56de\u590d\u7684"

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    goto :goto_0
.end method

.method public onClick(Landroid/view/View;)V
    .locals 2

    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v0

    const v1, 0x7f0a0165

    if-ne v0, v1, :cond_0

    const/4 v0, 0x0

    invoke-direct {p0, v0}, Lcom/xingbook/group/activity/GroupMinePostActivity;->a(I)V

    :cond_0
    return-void
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 5

    const/4 v2, 0x0

    const/4 v4, 0x1

    invoke-super {p0, p1}, Lcom/xingbook/park/activity/BaseActivity;->onCreate(Landroid/os/Bundle;)V

    const v0, 0x7f030026

    invoke-static {p0, v0, v2}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/RelativeLayout;

    iput-object v0, p0, Lcom/xingbook/group/activity/GroupMinePostActivity;->l:Landroid/widget/RelativeLayout;

    iget-object v0, p0, Lcom/xingbook/group/activity/GroupMinePostActivity;->l:Landroid/widget/RelativeLayout;

    invoke-virtual {p0, v0}, Lcom/xingbook/group/activity/GroupMinePostActivity;->setContentView(Landroid/view/View;)V

    invoke-virtual {p0}, Lcom/xingbook/group/activity/GroupMinePostActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    invoke-virtual {v0}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle;

    move-result-object v0

    if-eqz v0, :cond_0

    const-string v1, "com.xingbook.group.activity.GroupMinePostActivity.INTENT_TYPE"

    invoke-virtual {v0, v1}, Landroid/os/Bundle;->containsKey(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_0

    const-string v1, "com.xingbook.group.activity.GroupMinePostActivity.INTENT_TYPE"

    invoke-virtual {v0, v1}, Landroid/os/Bundle;->getInt(Ljava/lang/String;)I

    move-result v0

    iput v0, p0, Lcom/xingbook/group/activity/GroupMinePostActivity;->g:I

    :cond_0
    new-instance v1, Lcom/xingbook/ui/t;

    invoke-direct {v1, p0, v2}, Lcom/xingbook/ui/t;-><init>(Landroid/app/Activity;Lcom/xingbook/ui/x;)V

    const-string v0, "\u6211\u56de\u590d\u7684"

    iget v2, p0, Lcom/xingbook/group/activity/GroupMinePostActivity;->g:I

    if-ne v2, v4, :cond_1

    const-string v0, "\u56de\u590d\u6211\u7684"

    :cond_1
    iput-object v0, v1, Lcom/xingbook/ui/t;->c:Ljava/lang/String;

    const v0, -0x705e39

    invoke-virtual {v1, v0}, Lcom/xingbook/ui/t;->setBackgroundColor(I)V

    new-instance v0, Landroid/widget/RelativeLayout$LayoutParams;

    invoke-static {p0}, Lcom/xingbook/c/n;->c(Landroid/app/Activity;)I

    move-result v2

    sget v3, Lcom/xingbook/ui/t;->b:I

    invoke-direct {v0, v2, v3}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    invoke-virtual {v1, v0}, Lcom/xingbook/ui/t;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    const v0, 0x7f0a0163

    invoke-virtual {p0, v0}, Lcom/xingbook/group/activity/GroupMinePostActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/RelativeLayout;

    invoke-virtual {v0, v1}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;)V

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/xingbook/group/activity/GroupMinePostActivity;->f:Ljava/util/ArrayList;

    const v0, 0x7f0a0164

    invoke-virtual {p0, v0}, Lcom/xingbook/group/activity/GroupMinePostActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/handmark/pulltorefresh/library/PullToRefreshListView;

    iput-object v0, p0, Lcom/xingbook/group/activity/GroupMinePostActivity;->a:Lcom/handmark/pulltorefresh/library/PullToRefreshListView;

    iget-object v0, p0, Lcom/xingbook/group/activity/GroupMinePostActivity;->a:Lcom/handmark/pulltorefresh/library/PullToRefreshListView;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Lcom/handmark/pulltorefresh/library/PullToRefreshListView;->setVisibility(I)V

    iget-object v0, p0, Lcom/xingbook/group/activity/GroupMinePostActivity;->a:Lcom/handmark/pulltorefresh/library/PullToRefreshListView;

    new-instance v1, Lcom/xingbook/group/activity/z;

    invoke-direct {v1, p0}, Lcom/xingbook/group/activity/z;-><init>(Lcom/xingbook/group/activity/GroupMinePostActivity;)V

    invoke-virtual {v0, v1}, Lcom/handmark/pulltorefresh/library/PullToRefreshListView;->setOnRefreshListener(Lcom/handmark/pulltorefresh/library/j;)V

    iget-object v0, p0, Lcom/xingbook/group/activity/GroupMinePostActivity;->a:Lcom/handmark/pulltorefresh/library/PullToRefreshListView;

    new-instance v1, Lcom/xingbook/group/activity/aa;

    invoke-direct {v1, p0}, Lcom/xingbook/group/activity/aa;-><init>(Lcom/xingbook/group/activity/GroupMinePostActivity;)V

    invoke-virtual {v0, v1}, Lcom/handmark/pulltorefresh/library/PullToRefreshListView;->setOnLastItemVisibleListener(Lcom/handmark/pulltorefresh/library/h;)V

    iget v0, p0, Lcom/xingbook/group/activity/GroupMinePostActivity;->g:I

    if-ne v0, v4, :cond_2

    new-instance v0, Lcom/xingbook/group/adapter/aa;

    invoke-direct {v0, p0, p0}, Lcom/xingbook/group/adapter/aa;-><init>(Landroid/app/Activity;Lcom/xingbook/group/adapter/v;)V

    iput-object v0, p0, Lcom/xingbook/group/activity/GroupMinePostActivity;->b:Lcom/xingbook/group/adapter/t;

    :goto_0
    iget-object v0, p0, Lcom/xingbook/group/activity/GroupMinePostActivity;->a:Lcom/handmark/pulltorefresh/library/PullToRefreshListView;

    iget-object v1, p0, Lcom/xingbook/group/activity/GroupMinePostActivity;->b:Lcom/xingbook/group/adapter/t;

    invoke-virtual {v0, v1}, Lcom/handmark/pulltorefresh/library/PullToRefreshListView;->setAdapter(Landroid/widget/ListAdapter;)V

    iget-object v0, p0, Lcom/xingbook/group/activity/GroupMinePostActivity;->a:Lcom/handmark/pulltorefresh/library/PullToRefreshListView;

    invoke-virtual {v0, p0}, Lcom/handmark/pulltorefresh/library/PullToRefreshListView;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V

    const v0, 0x7f0a0165

    invoke-virtual {p0, v0}, Lcom/xingbook/group/activity/GroupMinePostActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/xingbook/group/activity/GroupMinePostActivity;->d:Landroid/view/View;

    const v0, 0x7f0a0166

    invoke-virtual {p0, v0}, Lcom/xingbook/group/activity/GroupMinePostActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/xingbook/group/activity/GroupMinePostActivity;->e:Landroid/widget/TextView;

    iget-object v0, p0, Lcom/xingbook/group/activity/GroupMinePostActivity;->d:Landroid/view/View;

    invoke-virtual {v0, p0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, p0, Lcom/xingbook/group/activity/GroupMinePostActivity;->l:Landroid/widget/RelativeLayout;

    invoke-static {v0, p0}, Lcom/xingbook/ui/ae;->a(Landroid/widget/RelativeLayout;Landroid/app/Activity;)Lcom/xingbook/ui/ae;

    move-result-object v0

    iput-object v0, p0, Lcom/xingbook/group/activity/GroupMinePostActivity;->c:Lcom/xingbook/ui/ae;

    const/16 v0, 0x96

    invoke-direct {p0, v0}, Lcom/xingbook/group/activity/GroupMinePostActivity;->a(I)V

    return-void

    :cond_2
    new-instance v0, Lcom/xingbook/group/adapter/t;

    invoke-direct {v0, p0, p0}, Lcom/xingbook/group/adapter/t;-><init>(Landroid/app/Activity;Lcom/xingbook/group/adapter/v;)V

    iput-object v0, p0, Lcom/xingbook/group/activity/GroupMinePostActivity;->b:Lcom/xingbook/group/adapter/t;

    goto :goto_0
.end method

.method public onItemClick(Landroid/widget/AdapterView;Landroid/view/View;IJ)V
    .locals 3

    invoke-virtual {p1}, Landroid/widget/AdapterView;->getAdapter()Landroid/widget/Adapter;

    move-result-object v0

    check-cast v0, Landroid/widget/Adapter;

    invoke-interface {v0, p3}, Landroid/widget/Adapter;->getItem(I)Ljava/lang/Object;

    move-result-object v0

    if-eqz v0, :cond_0

    instance-of v1, v0, Lcom/xingbook/group/a/f;

    if-eqz v1, :cond_0

    new-instance v1, Landroid/content/Intent;

    const-class v2, Lcom/xingbook/group/activity/GroupTopicDetail;

    invoke-direct {v1, p0, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string v2, "com.xingbook.group.activity.GroupTopicDetail.INTENT_TOPICID"

    check-cast v0, Lcom/xingbook/group/a/f;

    iget-object v0, v0, Lcom/xingbook/group/a/f;->a:Ljava/lang/String;

    invoke-virtual {v1, v2, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    invoke-virtual {p0, v1}, Lcom/xingbook/group/activity/GroupMinePostActivity;->startActivity(Landroid/content/Intent;)V

    :cond_0
    return-void
.end method

.method protected onPause()V
    .locals 1

    invoke-super {p0}, Lcom/xingbook/park/activity/BaseActivity;->onPause()V

    invoke-static {p0}, Lcom/baidu/mobstat/StatService;->onPause(Landroid/content/Context;)V

    invoke-virtual {p0}, Lcom/xingbook/group/activity/GroupMinePostActivity;->j()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/a/a/g;->b(Ljava/lang/String;)V

    invoke-static {p0}, Lcom/a/a/g;->a(Landroid/content/Context;)V

    return-void
.end method

.method protected onResume()V
    .locals 1

    iget-object v0, p0, Lcom/xingbook/group/activity/GroupMinePostActivity;->l:Landroid/widget/RelativeLayout;

    invoke-static {v0, p0}, Lcom/xingbook/ui/ae;->a(Landroid/widget/RelativeLayout;Landroid/app/Activity;)Lcom/xingbook/ui/ae;

    move-result-object v0

    iput-object v0, p0, Lcom/xingbook/group/activity/GroupMinePostActivity;->c:Lcom/xingbook/ui/ae;

    invoke-super {p0}, Lcom/xingbook/park/activity/BaseActivity;->onResume()V

    invoke-static {p0}, Lcom/baidu/mobstat/StatService;->onResume(Landroid/content/Context;)V

    invoke-virtual {p0}, Lcom/xingbook/group/activity/GroupMinePostActivity;->j()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/a/a/g;->a(Ljava/lang/String;)V

    invoke-static {p0}, Lcom/a/a/g;->b(Landroid/content/Context;)V

    return-void
.end method
